import request from "@/utils/request";

export function getPageDtoByPageIndex(data) {
  return request({
    url: "/v2/ParentPackage/getPageDtoByPageIndex",
    method: "post",
    data
  });
}

// 获取当前用户的游戏分组
export function getGameGroupList(data) {
  return request({
    url: "/v2/ParentPackage/getGameGroupList",
    method: "post",
    data
  });
}

// 获取当前用户的游戏分区
export function getGameServerList(data) {
  return request({
    url: "/v2/ParentPackage/getGameServerList",
    method: "post",
    data
  });
}

// 获取母包详情
export function getParentPackageById(data) {
  return request({
    url: "/v2/ParentPackage/getParentPackageById",
    method: "post",
    data
  });
}

// 添加 母包
export function addParentPackage(data) {
  return request({
    url: "/v2/ParentPackage/add",
    method: "post",
    data
  });
}

// 同时添加安卓与ios母包
export function addMobileAPackage(data) {
  return request({
    url: "/v2/ParentPackage/mobileAdd",
    method: "post",
    data
  });
}

// 母包变更记录 
export function getParentChangeLog(data) {
  return request({
    url: "/v2/ParentPackage/getParentChangeLog",
    method: "post",
    data
  });
}

// 修改母包
export function modifyPackage(data) {
  return request({
    url: "/v2/ParentPackage/modify",
    method: "post",
    data
  });
}
 
// 母包 禁用/启用
export function enabledPackage(data) {
  return request({
    url: "/v2/ParentPackage/enabled",
    method: "post",
    data
  });
}
